package com.alex.cms.service.impl;

import java.util.List;

import com.alex.cms.domain.CmsComment;
import com.alex.cms.dao.CmsCommentMapper;
import com.alex.cms.service.ICmsCommentService;
import com.alex.cms.web.vo.CommentVo;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import org.springframework.stereotype.Service;

/**
 * <p>
 * 用户评论表 服务实现类
 * </p>
 *
 * @author alex
 * @since 2019-09-17
 */
@Service
public class CmsCommentServiceImpl extends ServiceImpl<CmsCommentMapper, CmsComment> implements ICmsCommentService {

	@Override
	public List<CommentVo> selectAllCommentsByUserId(QueryWrapper<CommentVo> queryWrapper) {
		
		return this.baseMapper.selectAllCommentsByUserId(queryWrapper);
	}

	@Override
	public IPage<CommentVo> selectAllCommentsByPage(IPage<CommentVo> page, QueryWrapper<CommentVo> queryWrapper) {
		return this.baseMapper.selectAllCommentsByPage(page,queryWrapper);
	}

}
